<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.settlementname" @keyup.enter="query" placeholder="用工单位名称">
            </div>
            <div class="form-group col-sm-2">
                <select v-model="q.jobname" class="form-control"  placeholder="用工单位名称">
                    <option v-for="post in post" :value="post.value">{{post.label}}
                    </option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <select v-model="q.sex" class="form-control">

                    <option v-for="sex in sex" :value="sex.value">{{sex.label}}
                    </option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <select v-model="q.education" class="form-control">
                    <option v-for="education in education" :value="education.value">{{education.label}}
                    </option>
                </select>
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            #if($shiro.hasPermission("recruitdamand:list"))
            <a class="btn btn-primary" @click="choose"><i class="fa"></i>&nbsp;筛选</a>
            #end
            #if($shiro.hasPermission("recruitdamand:list"))
            <a class="btn btn-primary" @click="selected"><i class="fa"></i>&nbsp;面试</a>
            #end
        </div>
        <!-----用来计算单元格内容实际长度的--------->
        <!--<div class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" style="position:absolute;top:-9999px"><div class="ui-jqgrid-view">
            <div class="ui-jqgrid-bdiv"><div style="position: relative;"><table cellspacing="0" cellpadding="0" border="0"><tr class="ui-widget-content jqgrow ui-row-ltr" style="table-layout:auto"><td id="tdCompute" style="background:#eee;width:auto"></td></tr></table></div></div></div></div>
        --><!-----用来计算单元格内容实际长度的--------->
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showTable">
        <div class="panel panel-default">
            <div class="panel-heading">筛选结果</div>
            <table id="jqGridTable"></table>
            <div id="jqGridPagerTable"></div>
            <!--<table id="tableSelected" class="ui-jqgrid-btable ui-common-table table table-bordered" style="width: 1613px;">

                    <tr>&lt;!&ndash;class="jqgfirstrow"&ndash;&gt;
                        <td><input id="select_all" name="select_all" type="checkbox"></td>
                        <td>求职单位</td>
                        <td>求职岗位</td>
                        <td>姓名</td>
                        <td>性别</td>
                        <td>年龄</td>
                        <td>学历</td>
                        <td>证件</td>
                    </tr>

                    <tr v-for="empinfo in list">&lt;!&ndash; class="jqgrow ui-row-ltr"&ndash;&gt;
                        <td><input name="select_item" id="select_item" type="checkbox" value="empinfo.id"></td>
                        <td>{{empinfo.company}}</td>
                        <td>{{empinfo.job}}</td>
                        <td>{{empinfo.name}}</td>
                        <td>{{empinfo.sex}}</td>
                        <td>{{empinfo.age}}</td>
                        <td>{{empinfo.education}}</td>
                        <td>{{empinfo.papername}}</td>
                    </tr>
            </table>-->
        </div>
    </div>


</div>
<script>
    $(function () {
        //全选，全不选
        var checkboxes = document.getElementsByName('select_item');
        $("#select_all").click(function () {
            for (var i = 0; i < checkboxes.length; i++) {
                var checkbox = checkboxes[i];
                if (!$(this).get(0).checked) {
                    checkbox.checked = false;
                } else {
                    checkbox.checked = true;
                }
            }
        });


        /*$("#tableSelected tbody tr").each(function(){
            alert($("#tableSelected tbody tr").html());
            $(this).find('td').bind("click",function () {
                alert('2')
                if ($(this).hasClass("checkth")) {
                    $(this).find(':checkbox').attr('checked',false);
                    $(this).removeClass("checkth");

                } else {
                    $(this).find(':checkbox').attr('checked',true);
                    $(this).addClass('checkth');
                }
            });
        })*/
    })
</script>
<script src="${rc.contextPath}/js/recruit/recruitdamand.js?_${date.systemTime}"></script>
</body>
</html>